<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'size-form',
	'enableAjaxValidation'=>false,
)); ?>

<p class="note">
<?php echo Yii::t('default', 'field_with', array('{star}'=>'<span class="required">*</span>'))?>
</p>

<?php echo $form->errorSummary($model, '', '', array('class' => 'alert alert-error')); ?>

<?php echo $form->labelEx($model,'name', array('class' => 'clearfix')); ?>

<div class="column one-half">
<?php echo $form->textField($model, 'name')?>
</div>

<div class="column two-third">
<?php echo $form->labelEx($model,'enabled', array('class'=>'clearfix')); ?>
<?php echo $form->radioButtonList($model, 'enabled', array('1' => Yii::t('default', 'Yes'), '0' => Yii::t('default', 'No')), array('separator'=>'', 'template'=>' {input} {label} ')); ?>
</div>

<div class="clear">
<?php echo CHtml::submitButton($model->isNewRecord ? Yii::t('default', 'Create') : Yii::t('default', 'Update')); ?>
</div>

<?php $this->endWidget(); ?>